﻿<%@ Page Language="C#" MasterPageFile="~/bbsmanage/bbsm.master" AutoEventWireup="true" CodeBehind="banzhu.aspx.cs" Inherits="chatblog.bbsmanage.banzhu" Title="设置版主" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
<link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #ajaxtree
        {
            width: 100%;
            height: 100%;
            overflow: scroll;
            float: left;
        }
    .style3
    {
        width: 69px;
        text-align: right;
    }
    </style>

    <script type="text/javascript">
        function treeViewSelectChanged(textboxId,id)
        {
           var parentDocument=  window .opener .document ;
           var textbox=  parentDocument .getElementById (textboxId );
            textbox.value =id;
            window .opener =null;
            window.close ();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div>
<table style="width:100%"><tr><td style="width:320px; vertical-align:top;">
        <!--左边树-->
        <div id="ajaxtree">
            <asp:TreeView ID="TreeView1" runat="server" ShowLines="true" ShowExpandCollapse="true"
                OnSelectedNodeChanged="TreeView1_SelectedNodeChanged">
            </asp:TreeView>
        </div>
        
        </td><td style=" vertical-align:top;">
            <asp:GridView ID="GridView_banzhu" runat="server" AutoGenerateColumns="False"  Width="100%"
              DataKeyNames="RECID"
                CellPadding="4" ForeColor="#333333" GridLines="None" 
                onrowdeleting="GridView_banzhu_RowDeleting">
                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                <Columns>
                    <asp:BoundField DataField="cbuserid" HeaderText="版主" />
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    未设置版主
                    <hr />
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
        <table style="width:100%">
            <tr>
                <td class="style3">
                    当前版块:</td>
                <td>
                    <asp:Label ID="Label_id" runat="server" Text="id"></asp:Label>
&nbsp;<asp:Label ID="Label_name" runat="server" Text="name"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style3">
                    用户ID:</td>
                <td>
                    <asp:TextBox ID="TextBox_name" runat="server"></asp:TextBox>
                    邮件地址</td>
            </tr>
            <tr>
                <td class="style3">
                    地区:</td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                    不选择,则为全部地区.</td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style3">
                    &nbsp;</td>
                <td>
                
                    <asp:Button ID="Button1" runat="server" Text="增加" onclick="Button1_Click" />
                </td>
            </tr>
        </table>
        
        
        </td></tr></table>
    </div>

</asp:Content>
